package com.tuo51.bizgame.doctorcat.domain;

import com.tuo51.foudation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "dc_score_record")
@EqualsAndHashCode(callSuper = true)
public class ScoreRecord extends Domain {

    @Column(columnDefinition = "varchar(32) COMMENT '用户id'")
    private String userId;

    @Column(columnDefinition = "varchar(32) COMMENT '宠物id'")
    private String petId;

    @Column(columnDefinition = "int default 0 COMMENT '老的积分'")
    private Integer scoreBeforeChange;

    @Column(columnDefinition = "int default 0 COMMENT '积分'")
    private Integer delta;

    @Column(columnDefinition = "int default 0 COMMENT '来源方式'")
    private Integer sourceType;

    @Column(columnDefinition = "int default 0 COMMENT '来源事务id'")
    private String sourceId;


}
